/**
 * Created with Intellij IDEA.
 * Description:
 * User:Lenovo
 * Date:2024-12-03
 * Time:16:45
 */
public class Person{

    private String name = "Person";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    int age=0;

}

public class Child extends Person{

    public String grade;

    public static void Text(String[] args){

        Person p = new Child();

        System.out.println(p.getName());

    }

}
